Valid for Sitecore
5.3, 5.2
The 'selected' listbox is emptied when the value of the Query.MaxItems setting in web.config is altered
Sitecore versions: Expected to work with 5.3.0.x releases.
Q:
The 'selected' listbox is emptied when the value of the Query.MaxItems setting in web.config is altered.
Please take a look at the scenario below.
- Create a template with the multilist field. Type the source into this field "/sitecore/templates/System".
- Create an item based on this template and select a value which is placed at the bottom of the list in the multilist field (for example, 'Workflow'). Save.
- Change the value of the Query.MaxItems setting in your web.config to 10 (the sequence number of the selected item should be greater than the value of this setting).
- Go to the created item. As you can see, the 'selected' listbox is empty.
Is it expected behavior for the multilist field?
A:
Yes, this is expected as the 'Workflow' is not one of the first 10 selected items.
Conclusion: the 'selected' part of the MultiList field type shows the selected items only if their sequence number in the list (tree) is lower than the Query.MaxItems setting value in web.config.